package com.ybkj.daijia.server.model;

import java.math.BigDecimal;

/**
 * 客户充值临时记录
 *
 * @author Shine
 */
public class PayRecord extends Base {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    private String tradeNO;//订单号

    private Long memberId;

    private String phone;

    private String deviceType;

    private BigDecimal amount;//金额

    private PayRecordType payRecordType;//支付方式

    private boolean isTreatment;//是否交易成功


    public String getTradeNO() {
        return tradeNO;
    }


    public void setTradeNO(String tradeNO) {
        this.tradeNO = tradeNO;
    }


    public Long getMemberId() {
        return memberId;
    }


    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }


    public BigDecimal getAmount() {
        return amount;
    }


    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }


    public PayRecordType getPayRecordType() {
        return payRecordType;
    }


    public void setPayRecordType(PayRecordType payRecordType) {
        this.payRecordType = payRecordType;
    }


    public String getPhone() {
        return phone;
    }


    public void setPhone(String phone) {
        this.phone = phone;
    }


    public String getDeviceType() {
        return deviceType;
    }


    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }


    public boolean isTreatment() {
        return isTreatment;
    }


    public void setTreatment(boolean isTreatment) {
        this.isTreatment = isTreatment;
    }

    @Override
    public String toString() {
        return "PayRecord [tradeNO=" + tradeNO + ", memberId=" + memberId + ", phone=" + phone
            + ", deviceType=" + deviceType + ", amount=" + amount + ", payRecordType="
            + payRecordType
            + ", isTreatment=" + isTreatment + "]";
    }


    public enum PayRecordType {

        /**
         * 财付通微信
         */
        wx,

        /**
         * 支付宝
         */
        alipay,

        /**
         * 银联支付
         */
        unionpay,

        /**
         * 翼支付
         */
        bestpay
    }


}
